/*
 * Created on 22-ago-2004
 *
 */
package guru.mercurio.common;

import guru.merlin.core.Address;

/**
 * 
 * Schemas:
 * <li>
 * <ul>Relativo: apps://<operador>:<puerto>/?<pasaporte>
 * <ul>Simple  : apps://mercurio\?<pasaporte>
 * <ul>Absoluto: <protocolo>://<url>#<key>?<pasaporte>
 *  
 * @author cobach
 *
 */
public class RelativeApplicationAddress extends Address{
  
    

    /*
    public ApplicationAddress(String passport, String protocol, String url, String key){
        super(protocol,url,null,null);
        super.setExtension(key);
        super.setVariable(passport);
    }*/

    /**
     * 
     */
    private static final long serialVersionUID = 1585615931985150778L;

    /**
     * @param passport
     */
    public RelativeApplicationAddress(String operador, String puerto){
        super("apps",operador,puerto,null);
        //super.setVariable(passport);
    }
    
    public String getOperator(){
        return super.getDomain();
    }
    
    public void setOperator(String operator){
        super.setDomain(operator);
    }
    
    public String getSC(){
        return super.getPort();
    }
    
    public void setSC(String sc){
        super.setPort(sc);
    }
    
    public void setPassport(String passport){
        super.setVariable(passport);
    }
}
